<form action="{'SaleOrder/insert'|U}" method="POST" onsubmit="return false">
{wz action="save,list,reset"}
<div class="add_box">
<table cellspacing="0" cellpadding="0" class="add_table">
    <tbody>
         <tr><th>{$lang.sale_order_basic}</th></tr>
         <tr><td>
         <div class="basic_tb">
          <ul> 
<input type="hidden" name="order_type" id="order_type" value="1"/>
<input type="hidden" name="sale_order_state" id="sale_order_state" value="1">
<input type="hidden" name="flow" id="flow" value="sale">
<li class="w320">{$lang.client_name}： 
<input type="hidden" name="client_id" id="client_id" onchange="getClientInfo();">
    		<input type="text" name="client_name" id='client_name' url="{'AutoComplete/client'|U}" jqac>__*__
    		{quicklyAdd module="Client"}</li>
{company  type="li" title=$lang.basic_name
hidden=['name'=>'basic_id','id'=>'basic_id','onchange'=>'getClientInfo();']
name='basic_name' onchange='getProductNo();' require=""
}
{currency data=C('CLIENT_CURRENCY') name="currency_id" id="currency_id" value=$rs.currency_id type='li' title=$lang.currency_name require="" onchange="getBankCurrencry(this.value)" }
<li>{$lang.sale_date}：
					<input type="text" name="order_date"  id="order_date" value="{$this_time}" class="Wdate spc_input" 

{if 'digital_format'|C==eur}
{literal} 
onClick="WdatePicker({dateFmt:'dd/MM/yy HH:mm:ss'})"
{/literal}
{else}
{literal} 
onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
{/literal}
{/if}

/>__*__</li> 
{if C('sale.relation_sale_follow_up')==1}
	<li>{$lang.expect_shipping_date}：
						<input type="text" name="expect_shipping_date"  id="expect_shipping_date" value="{$curr_time}" class="Wdate spc_input" onClick="WdatePicker()"/>__*__</li> 					
{/if}					
	
</ul>
         </div>
         </td></tr>   
          <tr><th>{$lang.sale_order_detail}<span id="client_fund_show"></span></th></tr>   
          <tr><td>{include file="SaleOrder/detail.tpl"}</td></tr>
          <tr><td valign="top" class="b_top">
				<table width="100%" border="0" cellspacing="0" cellpadding="0" class="add_table_money">
				  <tr>
				    <td class="b_top t_right">{$lang.preferential_money}：</td>
				    <td width="121" class="b_top t_right"><span><input type="text" name="pr_money" id="pr_money"   onkeyup="$.dealWithPM();"></span></td>
				    <td width="60" class="b_top">&nbsp;</td>
				  </tr>
				    <tr id="sale_funds_after">
				    <td class="b_top t_right" >{$lang.after_preferential_money}：</td>
				    <td class="b_top t_right_red" id="after_preferential_money">&nbsp;</td>
				    <td class="b_top">&nbsp;</td>
				  </tr> 
				  </table>
				  {if C('sale.show_sale_advance')==1}
					 <table width="100%" border="0" cellspacing="0" cellpadding="0" class="add_table_money">
					    <tr>
					    <td class=" b_top t_right"><div>{include file="Accounts/sale_funds.tpl"} </div></td>
					  </tr></table> 
			     {/if}
				  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="add_table_money">
				  <tr id="payadd">
				    <td class="t_right b_top">{$lang.need_get_money1}：</td>
				    <td class="b_top t_right" width="121"><span class="t_right_red" id="need_get_money"></span> </td>
				    <td class="b_top" width="60"><input type="hidden" id="old_need_get_money" value="0"></td>
				  </tr> 
				  </table>
          </td></tr>
          <tr><td class="pad_top_10">
	          <table width="100%" cellspacing="0" cellpadding="0" border="0">
				<tbody>
					<tr>
					<td width="8%" valign="top">{$lang.upload_pic}：</td>
					<td class="t_left" valign="top">{upload tocken=$file_tocken sid=$sid type=3}</td>
					<td width="7%" valign="top">{$lang.receive_addr}：</td>
					<td class="t_left" width="25%" valign="top"><textarea id="receive_addr" class="textarea_height80" name="receive_addr"></textarea></td>
					<td width="7%" valign="top">{$lang.comments}：</td>
					<td class="t_left" width="25%" valign="top"><textarea id="comments" class="textarea_height80" name="comments"></textarea></td>
					</tr>
				</tbody>
			 </table>
      </td></tr>                      
   </tbody>          
  </table>
  {staff}
</div>
</form> 
